/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.vijayan.profile.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.vijayan.profile.service.http.FamilyMemberServiceSoap}.
 * </p>
 *
 * @author    vijayan
 * @see       com.vijayan.profile.service.http.FamilyMemberServiceSoap
 * @generated
 */
public class FamilyMemberSoap implements Serializable {
	public static FamilyMemberSoap toSoapModel(FamilyMember model) {
		FamilyMemberSoap soapModel = new FamilyMemberSoap();

		soapModel.setMemberId(model.getMemberId());
		soapModel.setProfileId(model.getProfileId());
		soapModel.setMemberName(model.getMemberName());
		soapModel.setRelationship(model.getRelationship());
		soapModel.setMarried(model.getMarried());
		soapModel.setAvailable(model.getAvailable());

		return soapModel;
	}

	public static FamilyMemberSoap[] toSoapModels(FamilyMember[] models) {
		FamilyMemberSoap[] soapModels = new FamilyMemberSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static FamilyMemberSoap[][] toSoapModels(FamilyMember[][] models) {
		FamilyMemberSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new FamilyMemberSoap[models.length][models[0].length];
		}
		else {
			soapModels = new FamilyMemberSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static FamilyMemberSoap[] toSoapModels(List<FamilyMember> models) {
		List<FamilyMemberSoap> soapModels = new ArrayList<FamilyMemberSoap>(models.size());

		for (FamilyMember model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new FamilyMemberSoap[soapModels.size()]);
	}

	public FamilyMemberSoap() {
	}

	public long getPrimaryKey() {
		return _memberId;
	}

	public void setPrimaryKey(long pk) {
		setMemberId(pk);
	}

	public long getMemberId() {
		return _memberId;
	}

	public void setMemberId(long memberId) {
		_memberId = memberId;
	}

	public long getProfileId() {
		return _profileId;
	}

	public void setProfileId(long profileId) {
		_profileId = profileId;
	}

	public String getMemberName() {
		return _memberName;
	}

	public void setMemberName(String memberName) {
		_memberName = memberName;
	}

	public String getRelationship() {
		return _relationship;
	}

	public void setRelationship(String relationship) {
		_relationship = relationship;
	}

	public boolean getMarried() {
		return _married;
	}

	public boolean isMarried() {
		return _married;
	}

	public void setMarried(boolean married) {
		_married = married;
	}

	public boolean getAvailable() {
		return _available;
	}

	public boolean isAvailable() {
		return _available;
	}

	public void setAvailable(boolean available) {
		_available = available;
	}

	private long _memberId;
	private long _profileId;
	private String _memberName;
	private String _relationship;
	private boolean _married;
	private boolean _available;
}